package cate.common.table.res.hero.back.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.hero.back.row.HeroBackDogRow;

import java.util.ArrayList;
import java.util.List;

public class HeroBackDogSheet extends ESheet<HeroBackDogRow> {
    @Override
    public String getSheetName() {
        return "英雄回退返还的狗粮卡";
    }

    public List<HeroBackDogRow> getRewardRow(byte camp, int star, int endStar){
        List<HeroBackDogRow> rows = new ArrayList<>();
        for(HeroBackDogRow row : this.getList()){
            if(row.camp == camp && row.star <= star && row.star > endStar){
                rows.add(row);
            }
        }
        return rows;
    }
}
